package com.bjpowernode.service;

import com.bjpowernode.vo.PageInfo;

import java.math.BigDecimal;

//此处增删改查的接口方法针对的是搜索引擎，不再只是MySql和Redis
public interface SearchService {

    PageInfo list(Integer pageNo, Integer pageSize, String name) throws Exception;

    boolean add(String id, String name, BigDecimal price, String src) throws Exception;

    boolean update(String id,String name,BigDecimal price,String src) throws Exception;

    boolean del(String id) throws Exception;
}
